import request from '@/utils/request'

// 查询账户流水明细列表
export function listAccountDetails(query) {
  return request({
    url: '/cld/accountDetails/list',
    method: 'get',
    params: query
  })
}

// 查询账户流水明细详细
export function getAccountDetails(bankDetailsId) {
  return request({
    url: '/cld/accountDetails/' + bankDetailsId,
    method: 'get'
  })
}

// 新增账户流水明细
export function addAccountDetails(data) {
  return request({
    url: '/cld/accountDetails',
    method: 'post',
    data: data
  })
}

// 修改账户流水明细
export function updateAccountDetails(data) {
  return request({
    url: '/cld/accountDetails',
    method: 'put',
    data: data
  })
}

// 删除账户流水明细
export function delAccountDetails(accountDetailsId) {
  return request({
    url: '/cld/accountDetails/' + accountDetailsId,
    method: 'delete'
  })
}
